﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("退库单")]
    [Table("t_returnstockvoucher")]
    [Index(nameof(VoucherCode))]
    public class ReturnStockVoucher : VoucherBase
    {
        public ReturnStockVoucher(Guid keyId)

        {
            this.Id = keyId;
        }

        public ReturnStockVoucher()
        {

        }

        [MaxLength(2)]
        [Comment("单据类型 1-二级库退库 2-三级库退库 3-三级库退一级库")]
        public int VoucherType { get; set; }


        [MaxLength(36)]
        [Comment("入库 仓库")]
        public Guid? DeptInId { get; set; }

        [MaxLength(50)]
        [Comment("入库 仓库名称")]
        public string DeptInName { get; set; }


        [MaxLength(36)]
        [Comment("出库 仓库ID")]
        public Guid? DeptOutId { get; set; }


        [MaxLength(60)]
        [Comment("出库 仓库名称")]
        public string DeptOutName { get; set; }

        [Comment("管理方式：0-数量管理 1-定数管理")]
        public int ProductManageType { get; set; }


        [MaxLength(200)]
        [Comment("退库原因")]
        public string ReturnReason { get; set; }
    }
}
